package hhm.android.myframe

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import hhm.android.base.adapter.HBaseAdapter

class MessageSystemListAdapter(var context: Context, list: ArrayList<Int>) :
    HBaseAdapter<MessageSystemListViewHolder, Int>(list) {
    override fun bindView(parent: ViewGroup, viewType: Int): MessageSystemListViewHolder {
        val v =
            LayoutInflater.from(context).inflate(R.layout.item_message_system_list, parent, false)
        return MessageSystemListViewHolder(v)
    }

    override fun bindData(holder: MessageSystemListViewHolder, bean: Int, position: Int) {
        holder.time.text = bean.toString()
        holder.time.visibility = View.VISIBLE

        holder.tv.text = bean.toString()
        holder.iv.setImageResource(R.mipmap.ic_launcher)

    }
}